//
//  WeatherModel.h
//  YuTang
//
//  Created by 葛悦彣 on 2024/9/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class WeatherHearModel,WeatherDayModel;
@interface WeatherModel : NSObject
+ (instancetype)shared;

@property (nonatomic ,strong) NSString * address;

@property (nonatomic ,strong) NSString * code;
@property (nonatomic ,strong) NSString * updateTime;

@property (nonatomic ,strong) NSArray<WeatherHearModel *> * hourly;
@property (nonatomic ,strong) WeatherHearModel  * hourlyModel;
///小时更新时间
@property (nonatomic ,strong) NSString * hourlyTime;


@property (nonatomic ,strong) NSArray<WeatherDayModel *> * daily;
@property (nonatomic ,strong) WeatherDayModel  * dailyModel;

///小时更新时间
@property (nonatomic ,strong) NSString * dailyTime;



@end
@interface WeatherHearModel: NSObject
///温度，默认单位：摄氏度
@property (nonatomic ,strong) NSString * temp;
///预报时间
@property (nonatomic ,strong) NSString * fxTime;
///图标
@property (nonatomic ,strong) NSString * icon;
///天气
@property (nonatomic ,strong) NSString * text;

@end
@interface WeatherDayModel: NSObject
/// 预报日期
@property (nonatomic ,strong) NSString * fxDate;
///最大温度
@property (nonatomic ,strong) NSString * tempMax;
/// 最低温度
@property (nonatomic ,strong) NSString * tempMin;
///图标
@property (nonatomic ,strong) NSString * iconDay;
///天气
@property (nonatomic ,strong) NSString * textDay;


@end
NS_ASSUME_NONNULL_END
